package com.ganmiao.server.file.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author zero.yin
 * @Date 2022/8/14 2:49 PM
 * @Desc
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("gm附件信息")
public class GmAttachmentVo {

    @ApiModelProperty(value = "附件ID")
    private Integer fileId;

    @ApiModelProperty(value = "附件名称")
    private String fileName;

    @ApiModelProperty(value = "附件URL：保存到百家云到附件url需要单独获取")
    private String fileUrl;

    @ApiModelProperty(value = "业务类型")
    private String bizType;

    @ApiModelProperty(value = "状态（1正常；9删除/失效）")
    private char status;

    @ApiModelProperty(value = "附件存储：1甘苗服务；2百家云服务")
    private char fileStore;

    @ApiModelProperty(value = "转码状态（0待转码；1转码完成）")
    private char transferStatus;

    @ApiModelProperty(value = "百家云资源ID")
    private Integer videoId;

    @ApiModelProperty(value = "播放器token(音视频)")
    private String playerToken;

    @ApiModelProperty(value = "附件格式")
    private String format;

    @ApiModelProperty(value = "officeKey")
    private String officeKey;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型 1 文档  2 视频资源")
    private String type;

    @ApiModelProperty("视频时长")
    private Integer duration;

    private Integer createdById;
    private Integer updatedById;
    private String createdByName;
    private Date createdTime;
    private String updatedByName;
    private Date updatedTime;
}
